import request from "@/util/request";

export function getGradePage(currentPage, pageSize, sname, cno) {
  return request({
    url: `/course-api/edu/score/page/${currentPage}/${pageSize}`,
    method: "get",
    params: {
      sname,
      cno,
    },
  });
}

export function editGrade(gradeForm) {
  return request({
    url: `/course-api/edu/score/update`,
    method: "put",
    data: gradeForm,
  });
}

export function delGrade(sno, cno) {
  return request({
    url: `/course-api/edu/score/delete/${sno}/${cno}`,
    method: "delete",
  });
}
